package com.wang.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wang.mapper.CalibrationControlMapper;
import com.wang.pojo.CalibrationControl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CalibrationControlServiceImpl extends ServiceImpl<CalibrationControlMapper, CalibrationControl> implements CalibrationControlService {


    @Autowired
    private CalibrationControlMapper calibrationConfMapper;

    @Override
    public List<CalibrationControl> selectByDevId(Integer devId) {
        return calibrationConfMapper.selectList(new LambdaQueryWrapper<CalibrationControl>()
                .eq(CalibrationControl::getDevId,devId));
    }
}
